package com.qqcy.productservice.controller;

import com.qqcy.productservice.clients.ProductClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * DATE: 2022/1/6
 * Author: huhuan
 */
@RestController
public class ProductController {

    @Autowired
    private ProductClient productClient;

    @GetMapping("/hi/{name}")
    public String sayHi(@PathVariable("name") String name){
        return productClient.sayHi(name);
    }
}
